class Jx1 {
    name: string
}

class Jx2 {
    age: number
}

// 交叉类型使用 & 链接
type Jx3 = Jx1 & Jx2

let obj: Jx3 = {
    name: 'fsdfs',
    age: 67
}
console.log(obj);

interface Jx4 {
    Fn(value: string): string
}

interface Jx5 {
    Fn(value: number): string
}

type Jx6 = Jx4 & Jx5

class Jx7 implements Jx6 {
    n: string
}

let x: Jx7 = new Jx7()
x.n = '43'
console.log(x);
